<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>HP Mobile Testing Report</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    
<style type="text/css" media="screen">
body        { font-family: verdana, arial, helvetica, sans-serif; font-size: 80%; }
table       { font-size: 100%; }
pre         { }

/* -- heading ---------------------------------------------------------------------- */
h1 {
	font-size: 16pt;
	color: gray;
}
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}

.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}

.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}

a.popup_link:hover {
    color: red;
}

.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    /*border: solid #627173 1px; */
    padding: 10px;
    background-color: #E6E6D6;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 500px;
}

}
/* -- report ------------------------------------------------------------------------ */
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
    width: 80%;
    border-collapse: collapse;
    border: 1px solid #777;
}
#header_row {
    font-weight: bold;
    color: white;
    background-color: #777;
}
#result_table td {
    border: 1px solid #777;
    padding: 2px;
}
#total_row  { font-weight: bold; }
.passClass  { background-color: #6c6; }
.failClass  { background-color: #c60; }
.errorClass { background-color: #c00; }
.passCase   { color: #6c6; }
.failCase   { color: #c60; font-weight: bold; }
.errorCase  { color: #c00; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }


/* -- ending ---------------------------------------------------------------------- */
#ending {
}

</style>

</head>
<body>
<script language="javascript" type="text/javascript"><!--
output_list = Array();

/* level - 0:Summary; 1:Failed; 2:All */
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level < 1) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level > 1) {
                tr.className = '';
            }
            else {
                tr.className = 'hiddenRow';
            }
        }
    }
}


function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        tid0 = 't' + cid.substr(1) + '.' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        if (toHide) {
            document.getElementById('div_'+tid).style.display = 'none'
            document.getElementById(tid).className = 'hiddenRow';
        }
        else {
            document.getElementById(tid).className = '';
        }
    }
}


function showTestDetail(div_id){
    var details_div = document.getElementById(div_id)
    var displayState = details_div.style.display
    // alert(displayState)
    if (displayState != 'block' ) {
        displayState = 'block'
        details_div.style.display = 'block'
    }
    else {
        details_div.style.display = 'none'
    }
}


function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}

/* obsoleted by detail in <div>
function showOutput(id, name) {
    var w = window.open("", //url
                    name,
                    "resizable,scrollbars,status,width=800,height=450");
    d = w.document;
    d.write("<pre>");
    d.write(html_escape(output_list[id]));
    d.write("\n");
    d.write("<a href='javascript:window.close()'>close</a>\n");
    d.write("</pre>\n");
    d.close();
}
*/
--></script>

<div class='heading'>
<h1>HP Mobile Testing Report</h1>
<p class='attribute'><strong>Start Time:</strong> 2016-06-29 17:34:42</p>
<p class='attribute'><strong>Duration:</strong> 0:41:27.279000</p>
<p class='attribute'><strong>Status:</strong> Pass 1 Error 1</p>

<p class='description'>Script Running:</p>
</div>



<p id='show_detail_line'>Show
<a href='javascript:showCase(0)'>Summary</a>
<a href='javascript:showCase(1)'>Failed</a>
<a href='javascript:showCase(2)'>All</a>
</p>
<table id='result_table'>
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row'>
    <td>Test Group/Test case</td>
    <td>Count</td>
    <td>Pass</td>
    <td>Fail</td>
    <td>Error</td>
    <td>View</td>
</tr>

<tr class='errorClass'>
    <td>allmediasizes_general_test.allmediasizes_general_test</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td>1</td>
    <td><a href="javascript:showClassDetail('c1',1)">Detail</a></td>
</tr>

<tr id='ft1.1' class='none'>
    <td class='errorCase'><div class='testcase'>testAllMediaSizesGeneral</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_ft1.1')" >
        error</a>

    <div id='div_ft1.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_ft1.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
ft1.1: start: 15.0260041591
clock: 15.0282426318
clock: 16.0306784317
clock: 17.0324225929
clock: 18.0349037516
clock: 19.0374454991
clock: 20.0379907978
clock: 21.0407110006
clock: 22.0427971737
clock: 23.0447644869
clock: 24.0468529776
clock: 25.0492411012
C:\Python27\lib\site-packages\pywinauto-0.5.4-py2.7.egg\pywinauto\application.py:950: UserWarning: 64-bit application should be automated using 64-bit Python (you use 32-bit Python)
  UserWarning)
start: 42.1598599241
The window is already foreground
start: 48.1625122543
start: 49.1660896389
start: 58.4525005769
Find the font selection combo
4
start: 69.4702534099
start: 80.2479185449
start: 91.0258942385
start: 101.803930852
start: 112.543622075
start: 123.282965657
start: 134.021175269
start: 144.759788807
start: 155.498777134
start: 166.27797917
start: 177.05884988
start: 187.841306161
start: 198.580980167
start: 209.600585757
start: 220.381248214
start: 231.16000196
start: 241.939399999
start: 252.678774704
start: 263.417522662
start: 274.156391798
start: 284.894215033
start: 295.633375525
start: 306.413331113
start: 317.19475573
start: 327.974111721
start: 338.714550205
start: 341.732708618
start: 357.748556713
start: 360.527436272
start: 376.541032651
start: 379.318073688
start: 395.33271961
start: 398.112650036
start: 414.127164516
start: 416.865129125
start: 432.880143215
start: 435.62007911
start: 451.633258651
start: 454.372205593
start: 470.38565828
start: 473.126482148
start: 489.140270888
start: 491.880192546
start: 507.896594879
start: 510.675275455
start: 526.689211197
start: 529.469111825
start: 545.476166275
start: 548.256146033
start: 564.277443142
start: 567.016383461
start: 583.032528872
start: 586.050639609
getListboxItems(tests to run)= ['10x15cm(tab).pcl', '10x15cm.pcl', '10x28.pcl', '11x14.pcl', '11x17.pcl', '13x18cm.pcl', '2L.pcl', '3.5x5.pcl', '3x5.pcl', '4.4x6.pcl', '4x6.5.pcl', '4x6.pcl', '4x8.5.pcl', '5x7.pcl', '5x8.pcl', '6x8.pcl', '8.5x11.pcl', '8.5x13.pcl', '8x10.pcl', 'a3.pcl', 'a4.pcl', 'a5.pcl', 'a6.pcl', 'B5.pcl', 'B5_ISO.pcl', 'B5_JIS.pcl', 'B7ISO.pcl', 'B7JIS.pcl', 'BPlus.pcl', 'Cabinet.pcl', 'Envelope#10.pcl', 'envelope_c5.pcl', 'envelope_c6.pcl', 'envelope_DL.pcl', 'Executive.pcl', 'Hagaki.pcl', 'HPGreetingCardEnvelope.pcl', 'JapaneseEnvelope#2.pcl', 'JapaneseEnvelope#3.pcl', 'JapaneseEnvelope#4.pcl', 'L.pcl', 'Legal.pcl', 'MonarchEnvelope.pcl', 'Ofuku_Hagaki.pcl', 'Statement.pcl']
Select a test at random
start: 587.064375044
getListboxItems(tests to run)= ['10x15cm(tab).pcl', '10x15cm.pcl', '10x28.pcl', '11x14.pcl', '11x17.pcl', '13x18cm.pcl', '2L.pcl', '3.5x5.pcl', '3x5.pcl', '4.4x6.pcl', '4x6.5.pcl', '4x6.pcl', '4x8.5.pcl', '5x7.pcl', '5x8.pcl', '6x8.pcl', '8.5x11.pcl', '8.5x13.pcl', '8x10.pcl', 'a3.pcl', 'a4.pcl', 'a5.pcl', 'a6.pcl', 'B5.pcl', 'B5_ISO.pcl', 'B5_JIS.pcl', 'B7ISO.pcl', 'B7JIS.pcl', 'BPlus.pcl', 'Cabinet.pcl', 'Envelope#10.pcl', 'envelope_c5.pcl', 'envelope_c6.pcl', 'envelope_DL.pcl', 'Executive.pcl', 'Hagaki.pcl', 'HPGreetingCardEnvelope.pcl', 'JapaneseEnvelope#2.pcl', 'JapaneseEnvelope#3.pcl', 'JapaneseEnvelope#4.pcl', 'L.pcl', 'Legal.pcl', 'MonarchEnvelope.pcl', 'Ofuku_Hagaki.pcl', 'Statement.pcl']
start: 588.075096272
start: 590.080516812
start: 638.683974079
start: 673.045217413
clock: 673.0493199
clock: 674.053852467
clock: 675.058077456
clock: 676.061841242
clock: 677.064925309
clock: 678.068235838
clock: 679.072484665
clock: 680.07664145
clock: 681.07969605
clock: 682.084192198
clock: 683.089110812
Traceback (most recent call last):
  File "D:\maying\PycharmProjects\HW_Reliability\run_test\test\allmediasizes_general_test.py", line 52, in testAllMediaSizesGeneral
    testsCombos = winGuiAuto.findControls(winwrapBasicWindow, wantedClass="ComboBox")
  File "D:\maying\PycharmProjects\HW_Reliability\run_test\winGuiAuto.py", line 269, in findControls
    return searchChildWindows(topHwnd)
  File "D:\maying\PycharmProjects\HW_Reliability\run_test\winGuiAuto.py", line 243, in searchChildWindows
    childWindows)
TypeError: The object is not a PyHANDLE object


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr class='passClass'>
    <td>duplex_smoke_test.duplex_smoke_test</td>
    <td>1</td>
    <td>1</td>
    <td>0</td>
    <td>0</td>
    <td><a href="javascript:showClassDetail('c2',1)">Detail</a></td>
</tr>

<tr id='pt2.1' class='hiddenRow'>
    <td class='none'><div class='testcase'>testDuplexSmoke</div></td>
    <td colspan='5' align='center'>

    <!--css div popup start-->
    <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt2.1')" >
        pass</a>

    <div id='div_pt2.1' class="popup_window">
        <div style='text-align: right; color:red;cursor:pointer'>
        <a onfocus='this.blur();' onclick="document.getElementById('div_pt2.1').style.display = 'none' " >
           [x]</a>
        </div>
        <pre>
        
pt2.1: start: 701.121840322
we need to set window foreground
start: 711.127462494
start: 712.131393478
start: 720.635496462
start: 722.646396145
start: 726.652779484
start: 726.662536589
start: 727.167801354
start: 728.173981737
start: 1240.61730428
start: 1241.12239423
start: 1242.13041677
start: 1560.81944985
start: 1561.32576018
start: 1562.33386318
start: 1582.89021982
clock: 1582.89444845
clock: 1583.89889427
clock: 1584.90384765
clock: 1585.90809747
clock: 1586.91316242
clock: 1587.91769201
clock: 1588.9224868
clock: 1589.92716538
clock: 1590.93224755
clock: 1591.93644936
start: 1593.44256469
start: 1594.45120603
start: 1630.57946777
start: 1631.08511725
start: 1632.09179923
start: 1658.61540715
clock: 1658.61968412
clock: 1659.62441634
clock: 1660.62900287
clock: 1661.63388176
start: 1663.13977956
start: 1664.14748194
start: 1732.62639226
start: 1733.12818559
start: 1734.1299314
start: 1765.50672121
start: 1766.01246638
start: 1767.01621494
start: 1814.0660861
start: 1814.57284307
start: 1815.58057061
start: 2433.84735874
start: 2434.35304498
start: 2435.62094324
start: 2476.27369392


        </pre>
    </div>
    <!--css div popup end-->

    </td>
</tr>

<tr id='total_row'>
    <td>Total</td>
    <td>2</td>
    <td>1</td>
    <td>0</td>
    <td>1</td>
    <td>&nbsp;</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>

</body>
</html>
